// 开发模式的配置
const htmlWebpackPlugin = require("html-webpack-plugin");
const vueLoaderPlugin = require("vue-loader/lib/plugin"); // 用于识别vue-loader文件
module.exports = {
  // 不需要生成文件，webpack-dev-server是在内存里维护的
  mode: "development",
  output: {
    filename: "bundle.js"
  },
  plugins: [
    new htmlWebpackPlugin({
      template: "public/index.html",
      filename: "./index.html"
    }),
    new vueLoaderPlugin()
  ]
};
